//
//  ACWAccount.m
//  pickerView
//
//  Created by rylynn lai on 15/10/12.
//  Copyright © 2015年 rylynn lai. All rights reserved.
//

#import "ACWAccount.h"

@implementation ACWAccount

- (instancetype)initWithDict:(NSDictionary *)dict{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

+ (instancetype)accountWithDict:(NSDictionary *)dict{
    return [[self alloc] initWithDict:dict];
}

+ (NSArray *)accountList {
    ACWAccount *account1 = [ACWAccount accountWithDict:@{@"account" : @"13788888888", @"accountType": @"支付宝"}];
    ACWAccount *account2 = [ACWAccount accountWithDict:@{@"account" : @"13788888888", @"accountType" : @"微信"}];
    ACWAccount *account3 = [ACWAccount accountWithDict:@{@"account" : @"6245654456564565546", @"accountType" : @"中国银行"}];
    return @[account1, account2, account3];
}

@end
